#include <unistd.h>
#include <stdio.h>
#include <limits.h> // for PATH_MAX

void print_working_directory() {
    char cwd[PATH_MAX];
    if (getcwd(cwd, sizeof(cwd)) != NULL) {
        printf("Current working directory: %s\n", cwd);
    } else {
        perror("getcwd() error");
    }
}

int main() {
    print_working_directory();
    return 0;
}

